﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace gpao2012
{
    public partial class Phase_de_production : DevExpress.XtraEditors.XtraUserControl
    {
        public Phase_de_production()
        {
            InitializeComponent();
        }

        

        private void Phase_de_production_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'gpaogscofficielDataSet.phase_production' table. You can move, or remove it, as needed.
            this.phase_productionTableAdapter.Fill(this.gpaogscofficielDataSet.phase_production);
            this.barstatustext.ForeColor = System.Drawing.Color.Black;
            barstatustext.Text = "Prêt.";

        }

        private void simpleButton1_Click(object sender, EventArgs e)
        {
          
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            try
            {
                this.Validate();
                this.phaseproductionBindingSource1.EndEdit();
                this.phase_productionTableAdapter.Update(this.gpaogscofficielDataSet.phase_production);
                barstatustext.Text = "Enregistrement éffectué";

            }
            catch (System.Exception ex)
            {
                this.barstatustext.ForeColor = System.Drawing.Color.Red;
                barstatustext.Text = "Erreur";
            }



        }

       
    }
}